package com.wusuowei.shiro_jwt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wusuowei.shiro_jwt.mapper.SysLogMapper;
import com.wusuowei.shiro_jwt.model.po.SysLog;
import com.wusuowei.shiro_jwt.service.SysLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements SysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;
    @Override
    public Page<SysLog> findPage(Page<SysLog> page, String title,String businessType) {
        return sysLogMapper.findPage(page,title,businessType);
    }

    @Override
    public void saveSysLog(SysLog syslog) {
        sysLogMapper.insert(syslog);

    }


}
